package org.jshand.cloud.service;

import org.jshand.cloud.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "ProviderApp", fallback = OrderProviderServiceSentinelClient.class, configuration = FeignConfiguration.class)
public interface OrderProviderService {

    @RequestMapping("/provider/order/{userId}")
    String order(@PathVariable("userId") String userId);

}